//
//  GRHUD.h
//  YC_GRice
//
//  Created by LiuFeng on 2018/7/20.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GRHUD : NSObject


/**
 提示信息展示（1.5s后自动消失）

 @param msg <#msg description#>
 */
+ (void)showMessage:(NSString *)msg;
+ (void)showErrorMsg:(NSString *)errorMsg;
+ (void)showMessage:(NSString *)msg atView:(UIView *)view;


/**
 进度展示（需手动移除）

 @param msg <#msg description#>
 */
+ (void)showProgress:(NSString *)msg;
+ (void)showProgress:(NSString *)msg atView:(UIView *)view;
+ (void)showProgress:(NSString *)msg color:(UIColor *)color atView:(UIView *)view;


/**
 自定义图标

 @param msg <#msg description#>
 @param iconName <#iconName description#>
 */
+ (void)showCustomHud:(NSString *)msg icon:(NSString *)iconName;
+ (void)showCustomHud:(NSString *)msg icon:(NSString *)iconName atView:(UIView *)view;


+ (void)showLoading:(NSString *)msg;
+ (void)showLoading:(NSString *)msg atView:(UIView *)view;



/**
 清除 HUD
 */
+ (void)dismissHUD;
+ (void)dismissHUD:(UIView *)view;


@end
